import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/style/reset.css'
import './assets/element/index.css'
import store from '../src/store'
import XLSX from 'xlsx'
import echarts from 'echarts';

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$echarts = echarts
Vue.prototype.$xlsx = XLSX
Vue.prototype.$uploadUrl = 'http://192.168.1.80:8081' + '/upload/img'
Vue.prototype.$checkAuth = function (flag) {
  let list = this.$store.state.curAuthority;
  return list.includes(flag)
}

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
